package com.woniuxy.entity;

import java.util.Date;

/**
 * ORM: 对象关系映射 Data Access Objects（DAO）
 */
public class RbacManager {
    int id;
    String account;
    String password;
    Date createtime;//创建时间
    String status;//状态
    RbacRole rbacRole;//角色信息 1对1查询 每个用户所拥有的角色信息

    public RbacRole getRbacRole() {
        return rbacRole;
    }

    public void setRbacRole(RbacRole rbacRole) {
        this.rbacRole = rbacRole;
    }

    public RbacManager() {
    }

    public RbacManager(int id, String account, String password, Date createtime, String status) {
        this.id = id;
        this.account = account;
        this.password = password;
        this.createtime = createtime;
        this.status = status;
    }

    @Override
    public String toString() {
        return "RbacManager{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", createtime=" + createtime +
                ", status='" + status + '\'' +
                ", rbacRole=" + rbacRole +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
